const { defineConfig } = require("@vue/cli-service");
const isproduction = process.env.NODE_ENV === "production";

module.exports = defineConfig({
  publicPath: "./",
  transpileDependencies: true,
  chainWebpack: (config) => {
    if (isproduction) {
      config.entry("app").clear().add("./src/main.pro.js");
    } else {
      config.entry("app").clear().add("./src/main.dev.js");
    }
  },
  configureWebpack: {
    //打包时排除的第三方模块
    // externals,
  },
});
